package org.example.tree;

/**
 * @author ZerlindaLi create at 2021/3/30 16:57
 * @version 1.0.0
 * @description Driver
 */
public class Driver {

    public static void main(String[] args) {
        System.out.println( "=====================无限级树=====================" );
        Branch d = new Branch("D盘", 1);
        Branch ali = new Branch("AliWorkbenchData", 2);
        Branch data = new Branch("AppDate", 3);
        Branch doc = new Branch("我的文档", 2);
        Leaf report = new Leaf("述职报告");

        d.addChild(ali);
        d.addChild(doc);

        ali.addChild(data);
        doc.addChild(report);

        d.show();


    }
}
